package com.advertising.biz;

import java.util.List;

import com.advertising.model.CloneRelease;
import com.advertising.model.Release;
import com.tgyt.common.tools.page.Pagination;
import com.tgyt.framework.service.ServiceInterface;

public interface IReleaseService extends ServiceInterface<Release> {
	public int getMaxOrder();

	public Pagination getPageList(Release release, int page, int rows,
			String sort, String order);

	public List<Release> getAll();
	
	/**
	 * @Description 根据电话号码找到广告的图片地址
	 * @param userid
	 * @return
	 */
	public String  findImageUrl(String userid);  

	/**
	 * @Title: convert
	 * @Description:将Release类型转换成CloneRelease
	 * @param @param release
	 * @param @return
	 * @param @throws Exception
	 * @return List<CloneRelease>
	 * @throws
	 */
	public List<CloneRelease> convert(List<Release> release) throws Exception;
	
	/**
	 * @Title: convert
	 * @Description:将CloneRelease类型转换成Release
	 * @param @param release
	 * @param @return
	 * @param @throws Exception
	 * @return List<CloneRelease>
	 * @throws
	 */
	public Release convert(CloneRelease release) throws Exception;

	
	
}
